
public class AccountHolder {

	public static double annualInterestRate;
	public double balance;
	
	//getters and setters
	public static double getAnnualInterestRate() {
		return annualInterestRate;
	}
	public static void setAnnualInterestRate(double annualInterestRate) {
		AccountHolder.annualInterestRate = annualInterestRate;
	}
	public double getBalance() {
		return balance;
	}
	public void setBalance(double balance) {
		this.balance = balance;
	}
	
	
	
	//Constructor method
	public AccountHolder(double balance) {
		
		this.balance = balance;
		
	}
	

	
	
	//other methods
	public void deposit(double bal) {
		
		balance += bal;   //ADD to existing BALANCE local variable
	}
	
	public void withdrawal(double bal) {
		
		balance -= bal;   //SUBTRACT from existing BALANCE local variable
		if (balance < 50.00) {
			System.out.println("Disallow the withdrawal account balance to drop below $50");
		}
	}
	
	public void monthlyInterest() {
		balance += balance * (annualInterestRate / 12.0);
	}
	
	
}
